using System;
using System.Collections.Generic;
using System.Text;
using BoOnce.Components;

namespace BoOnce.Menu
{
    class MenuItem
    {
        private String _Name;
        public Boolean IsHightlighted;

        public MenuItem(String name)
        {
            _Name = name;
            IsHightlighted = false;
        }

        public String Name {
            get {
                return _Name;
            }
        }

        public event EventHandler<EventArgs> Selected;

        public void OnSelectEntry()
        {
            if (Selected != null)
                Selected(this, EventArgs.Empty);
        }
    }
}
